//
//  GoodsSortTableViewCell.m
//  reSearchDemo
//
//  Created by 云库 on 15/9/19.
//  Copyright (c) 2015年 Kiwaro. All rights reserved.
//



#import "GoodsSortTableViewCell.h"
#import "UIImageView+WebCache.h"
#import "LineLable.h"
#import "UIView+Layer.h"
@implementation GoodsSortTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}



- (void)setDeals:(GoodsSort *)deals{
    
    _deals=deals;
    
    self.goodName.text = deals.goodName;
    [self.image sd_setImageWithURL:[NSURL URLWithString:deals.image] placeholderImage:[UIImage imageNamed:@"默认图片.png"]];
    [UIView SetRoundedCorners:self.image andcornerRadius:5.0 andborderWidth:1.0 andborderColor:[UIColor clearColor]];
    self.salesMoney.text = [NSString stringWithFormat:@"现价%.2f",deals.salesMoney];
    self.discount.text = [NSString stringWithFormat:@"%.1f折",deals.discount];
    self.bazaarMoney.text = [NSString stringWithFormat:@"原价%.2f",deals.bazaarMoney];
    
    
}

@end
